package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.DemandMapper;
import com.wanmait.baohan.pojo.Demand;
import com.wanmait.baohan.service.DemandService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class DemandServiceImpl implements DemandService {
    @Resource
    private DemandMapper demandMapper;
    @Override
    public void insert(Demand object) {
        demandMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Demand object) {

    }

    @Override
    public Demand findById(Integer id) {
        return null;
    }

    @Override
    public List<Demand> findAll() {
        return null;
    }

    @Override
    public List<Demand> findAll(Demand object) {
        return null;
    }

    @Override
    public PageInfo<Demand> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Demand> findPage() {
        return null;
    }

    @Override
    public PageInfo<Demand> findPage(int pageNum, Demand object) {
        return null;
    }

    @Override
    public PageInfo<Demand> findPage(Demand object) {
        return null;
    }

    @Override
    public List<Demand> findAllDemandBySupplier(Integer id) {
        return demandMapper.findAllDemandBySupplier(id);
    }

    @Override
    public Demand findOneDemandBySupplier(Integer customerId, Integer demandId) {
        return demandMapper.findOneDemandBySupplier(customerId, demandId);
    }

    @Override
    public List<Demand> findAllBy(Demand demand) {
        return demandMapper.findAllBy(demand);
    }

    @Override
    public Demand findOneBy(Integer id) {
        return demandMapper.findOneBy(id);
    }
}
